var admin = angular.module('hakeApp.admin', ['ui.router']);

admin.config(function($stateProvider, $urlRouterProvider) {
	$urlRouterProvider.otherwise("/admin");
	
	$stateProvider
	.state('admin', {
		url: '/admin',
		views: {
			'': {
				templateUrl: './views/admin/main/index.html',
				controller: 'adminController'
			},
			'topNavBarView@admin': {templateUrl: './views/admin/main/top.html'},
			'siderBarMenuView@admin': {templateUrl: './views/admin/main/left.html'},
			'@admin': {templateUrl: './views/admin/main/center.html'}
		}
	})
	.state('admin.center', {
		url: '',
		views: {
			'': {
				templateUrl: './views/admin/main/center.html'
			}
		}
	});
	
});
